Automattic\WooCommerce\Internal\Admin\Settings\PaymentsRestController A

Total Complexity 59
Dependencies 7
Dependents 2
Total lines 1,199
Lines of code 965
Logical lines of code 119
Comment lines 166
Methods 21
Properties 3

Methods 21

Method Rating Maintainability Complexity Lines of code
get_schema_for_payment_provider()
C
20
1 445
prepare_payment_providers_response_recursive()
A
51 11 25
add_provider_links()
A
51 9 27
register_routes()
A
35 1 124
get_schema_for_suggestion()
A
36 1 121
check_providers_order_map_arg()
S
56 7 17
get_providers()
S
48 4 35
check_permissions()
S
55 5 20
get_schema_for_get_payment_providers()
S
42 1 69
check_location_arg()
S
61 3 11
dismiss_payment_extension_suggestion_incentive()
S
61 2 11
attach_payment_extension_suggestion()
S
64 2 9
hide_payment_extension_suggestion()
S
64 2 9
get_extension_suggestions()
S
68 2 7
sanitize_providers_order_arg()
S
68 2 7
get_rest_api_namespace()
S
82 1 3
prepare_payment_providers_response()
S
72 1 5
update_providers_order()
S
72 1 5
set_country()
S
72 1 5
init()
S
80 1 3
get_woopay_eligibility()
S
71 1 7